import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
	state: {
		name: '华哥', //存储一个公共状态
		age: '22'
	},

	mutations: {
		showMe(state, msg) {
			state.name = msg
		},
		showAge(state, age) {
			state.age = age
		},
	},
	actions: {},
	modules: {}
})
